﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Cloak.Mvp.Autofac.ViewParameters
{
	/// <summary>
	/// Indicates whether a parameter of a presenter's constructor represents a view
	/// </summary>
	[AttributeUsage(AttributeTargets.Parameter)]
	public sealed class ViewAttribute : Attribute
	{
		/// <summary>
		/// Initializes an attribute which indicates the parameter represents a view
		/// </summary>
		public ViewAttribute()
		{
			IsView = true;
		}

		/// <summary>
		/// Gets or sets whether the parameter represents a view
		/// </summary>
		public bool IsView { get; set; }
	}
}